﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Backup.ascx.cs" Inherits="UserControl_Backup" %>
<style type="text/css">
.tips 
	{
	    width:100px;
	    height:10px;
	    color:#cc6600;
		border:1px solid #88a4d7;
		background-color:#e7e7e7;
		padding:10px;
	}
</style>

<table style="width: 420px; height: 220px;">
    <tr>
        <td style="width: 100px; height: 40px" align="right">
            备份到文件夹:</td>
        <td style="width: 220px; height: 40px" align="left">
            <asp:TextBox ID="PathText" runat="server" Width="210px" ValidationGroup="Backup"></asp:TextBox></td>
        <td style="width: 100px; height: 40px;">
            <asp:CustomValidator ID="PathExists" runat="server" ErrorMessage="路径不存在!" ControlToValidate="PathText" ValidationGroup="Backup" SetFocusOnError="true" OnServerValidate="PathExists_ServerValidate" Display="Dynamic">路径不存在!</asp:CustomValidator>
            <asp:RequiredFieldValidator ID="RequiredFilePath" runat="server" ErrorMessage="路径不能为空!" ValidationGroup="Backup" SetFocusOnError="true" ControlToValidate="PathText" Display="Dynamic">路径不能为空!</asp:RequiredFieldValidator>
        </td>
    </tr>
    <tr>
        <td style="width: 100px; height: 150px" valign="top">
            <asp:DropDownList ID="DriverList" runat="server" AutoPostBack="True" Height="100%"
                Width="100%" OnSelectedIndexChanged="DriverList_SelectedIndexChanged">
            </asp:DropDownList></td>
        <td style="width: 220px; height: 150px" valign="top" align="center">
            <asp:ListBox ID="DirectoryList" runat="server" Height="150px" Rows="8" Width="220px"
            SelectionMode="Single" OnSelectedIndexChanged="DirectoryList_SelectedIndexChanged" AutoPostBack="True">
            </asp:ListBox></td>
        <td style="width: 100px; height: 150px" valign="top">
        </td>
    </tr>
    <tr>
        <td style="width: 100px; height: 30px" align="right">
            &nbsp;文件名:</td>
        <td style="width: 220px; height: 30px" align="left">
            <asp:TextBox ID="FileName" runat="server" Width="140px" ValidationGroup="Backup"></asp:TextBox>
            &nbsp; &nbsp; &nbsp;<asp:Button ID="ButtonComfirm" runat="server" Text="确定" Width="50px" OnClick="ButtonComfirm_Click" ValidationGroup="Backup" /></td>
        <td style="width: 100px; height: 30px">
            <asp:RequiredFieldValidator ID="RequiredFileName" runat="server" ErrorMessage="文件名不能为空!" ValidationGroup="Backup" ControlToValidate="FileName" Display="Dynamic">文件名不能为空!</asp:RequiredFieldValidator>
            </td>
    </tr>
    <tr>
        <td align="center" colspan="3" style="height: 30px">

<asp:Panel ID="BackupSuccess" runat="server" Visible="false">
    <div id="Div1" class="tips" >
        数据备份成功！
    </div>
</asp:Panel>

<asp:Panel ID="Backing" runat="server" Visible="false">
    <div class="tips" id="backuptips">
	    数据备份中......
    </div>
</asp:Panel>
        </td>
    </tr>
</table>
&nbsp;
